import request from '@/utils/request'

// 查询 用户组列表
export function getPricUserGroupList(query) {
    return request({
        url: '/pricing/pricingUserGroup/getPricUserGroupList.action',
        method: 'get',
        params: query
    })
}

// 查询 用户组列表 groupId
export function getPricUserGroupById(groupId) {
    return request({
        url: '/pricing/pricingUserGroup/getPricUserGroupById.action',
        method: 'get',
        params: {"groupId": groupId}
    })
}

// 新增 用户组
export function addPricUserGroup(query) {
    return request({
        url: '/pricing/pricingUserGroup/addPricUserGroup.action',
        method: 'get',
        params: query
    })
}

// 修改 用户组
export function updatePricUserGroup(query) {
    return request({
        url: '/pricing/pricingUserGroup/updatePricUserGroup.action',
        method: 'get',
        params: query
    })
}

// 删除 用户组
export function deletePricUserGroup(groupIds) {
    return request({
        url: '/pricing/pricingUserGroup/deletePricUserGroup.action',
        method: 'get',
        params: {"groupIds": JSON.stringify(groupIds)}
    })
}

// 查询 用户
export function findUserList(query) {
    return request({
        url: '/pricing/pricingUserGroup/findUserList.action',
        method: 'get',
        params: query
    })
}

// 查询 组内用户
export function findInUserList(query) {
    return request({
        url: '/pricing/pricingUserGroup/findInUserList.action',
        method: 'get',
        params: query
    })
}

// 查询 组外用户
export function findOutUserList(query) {
    return request({
        url: '/pricing/pricingUserGroup/findOutUserList.action',
        method: 'get',
        params: query
    })
}

// 用户组 增加删除
export function dealTransferUser(query) {
    return request({
        url: '/pricing/pricingUserGroup/dealTransferUser.action',
        method: 'get',
        params: query
    })
}


